﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace Eg.FluentMappings.Mappings
{
    public class MovieMapping : SubclassMap<Movie>
    {
        public MovieMapping()
        {
            Map(m => m.Director);
            HasMany(m => m.Actors)
                .KeyColumn("MoiveId")
                .AsList(l => l.Column("ActorIndex"));
        }
    }
}
